-- GENERATED SPELL FOR [Wing Commander Jeztor] --


function spell0_13180(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(15580,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13180', 630, 1)
end

function spell1_13180(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(15572,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13180', 30312, 1)
end

function Sorts_13180(pUnit, Event)
local choix_sorts_13180 = math.random(0, 1)
if choix_sorts_13180 == 0 then
pUnit:RegisterEvent('spell0_13180', 1, 1)
end
if choix_sorts_13180 == 1 then
pUnit:RegisterEvent('spell1_13180', 1, 1)
end
end

function mob13180_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13180', math.random(1500, 3000), 1)
end

function mob13180_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13180_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13180_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13180, 1, 'mob13180_Action')
RegisterUnitEvent(13180, 2, 'mob13180_Leave')
RegisterUnitEvent(13180, 3, 'mob13180_Kill')
RegisterUnitEvent(13180, 4, 'mob13180_Die')
